import babel from "rollup-plugin-babel";
import postcss from "rollup-plugin-postcss";

export default {
  input: "./src/index.js",
  output: {
    file: "./lib/bundle.js",
    format: "cjs",
  },
  plugins: [
    babel(),
    postcss({
      modules: true,
      minimize: true,
      // extract: true,
      inject: true,
    }),
  ],
  external: ["react"],
};
